Instead of using encrypted database or files, just encrypt data and store it in database. In most cases you don't really need to encrypt entire data in a data set. So just encrypt sensitive data and store other data as plain text. Your application will run faster as encryption is really a CPU intensive process. [via](https://stackoverflow.com/a/44224897)